package m.jclecai.com.pop;

import android.content.Context;
import android.view.View;

import m.jclecai.com.R;
import butterknife.OnClick;

/**
 * Created by ZD on 2017/5/9.
 */

public class MyGuideMenuPopUpWindow extends BasePopupWindow {

    private Context mContext;

    /**
     * @param context
     */
    public MyGuideMenuPopUpWindow(Context context) {
        super(context);
        mContext = context;
        init();
    }


    void init() {
        // 设置SelectPicPopupWindow弹出窗体可点击
        setFocusable(true);
        setOutsideTouchable(true);
        setContentView(R.layout.lottery_help_popupview2);
        update();
    }

    @OnClick({R.id.tv_kaijiang,R.id.tv_playing,R.id.tv_guide})
    void onClick(View v){
        dismiss();
        if(listener != null)
            listener.onClick(v);
    }

    public View.OnClickListener listener;
    public void setListener(View.OnClickListener listener){
        this.listener = listener;
    }

    @Override
    protected int setPopWindowAnimationStyle() {
        return R.style.AnimationPreview;
    }


    @Override
    protected boolean allowBackgroundTranslucent() {
        return false;
    }
}
